package com.ovopark.organize.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ovopark.organize.server.model.entity.FranchiseesRegistrationAddress;
import com.ovopark.organize.server.model.query.FranchiseesAddressQuery;
import com.ovopark.organize.server.model.vo.FranchiseesRegistrationAddressVo;

import java.util.List;

/**
 * @Description:
 * @Author:zll
 * @Date:
 */
public interface FranchiseesRegistrationAddressService {


    FranchiseesRegistrationAddress saveOrUpdateFranchiseesAddress(FranchiseesRegistrationAddress vo);



    FranchiseesRegistrationAddress saveOrUpdateAddress(FranchiseesRegistrationAddress vo);

    IPage<FranchiseesRegistrationAddressVo> getFranchiseesAddressPage(Page<FranchiseesRegistrationAddress> page, Integer groupId, FranchiseesAddressQuery query);

    FranchiseesRegistrationAddress getAddressById(Integer id);

    void deleteAddressById(Integer id);

    public  Integer getReportId(Integer addressId,Integer groupId,Double latitude,Double longitude);

   List<FranchiseesRegistrationAddress>  getAddressByIds(Integer groupId,List<Integer> ids);


    void deleteAddressByIdList(List<Integer> ids);

    void updateNameByFranchiseesId(Integer franchiseesId, String name, String mobilePhone);
}
